<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据与方法</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<script>
    var p = console.log;
    var data = {
        a: 1
    };

    var vm = new Vue({
        data: data
    })

    p(vm.a === data.a); // => true

    vm.a = 2;
    p(data.a);

    data.a = 3;
    p(vm.a);
</script>
</body>
</html>